package org.westos.ChinaSoft2;

public class WaterFactory {

    String gooodsname;
    int price;
    int number=10;

    public String getGooodsname() {
        return gooodsname;
    }

    public void setGooodsname(String gooodsname) {
        this.gooodsname = gooodsname;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public Object getObject(String name) {
        Object Bean = null;
        if (name == null) {
            Bean = null;
        }
        if (name == "cocu") {
            Bean = new CoBean();
        }
        if (name == "bingfenng") {
            Bean = new bingfenngBean();
        }
        if (name == "xuebi") {
            Bean = new xuebiBean();
        }

        return Bean;
    }

}
